<template>
    <div>

    </div>
</template>

<script setup lang="ts">
const getScreen = async (source) => {
    const stream = await navigator.mediaDevices.getUserMedia({
        // audio: {
        //     mandatory: {
        //         chromeMediaSource: "desktop"
        //     }
        // },
        audio: false,
        video: {
            mandatory: {
                chromeMediaSource: 'desktop',
                // chromeMediaSourceId: source,
                maxFrameRate: 30,
                minWidth: 1280,
                maxWidth: 1280,
                minHeight: 720,
                maxHeight: 720
            }
        }
    })
    return stream
}
</script>

<style scoped lang="scss">

</style>